summaryrefslogtreecommitdiffstats
path: root/src/hid_core/irsensor/ir_led_processor.cpp
blob: 4b04e05b522393889ed8bc1a00267b3953f0e351 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#include "hid_core/irsensor/ir_led_processor.h"

namespace Service::IRS {
IrLedProcessor::IrLedProcessor(Core::IrSensor::DeviceFormat& device_format)
    : device(device_format) {
    device.mode = Core::IrSensor::IrSensorMode::IrLedProcessor;
    device.camera_status = Core::IrSensor::IrCameraStatus::Unconnected;
    device.camera_internal_status = Core::IrSensor::IrCameraInternalStatus::Stopped;
}

IrLedProcessor::~IrLedProcessor() = default;

void IrLedProcessor::StartProcessor() {}

void IrLedProcessor::SuspendProcessor() {}

void IrLedProcessor::StopProcessor() {}

void IrLedProcessor::SetConfig(Core::IrSensor::PackedIrLedProcessorConfig config) {
    current_config.light_target =
        static_cast<Core::IrSensor::CameraLightTarget>(config.light_target);
}

} // namespace Service::IRS